import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { BillingListComponent } from './billing-list/billing-list.component';
import { BillingDetailComponent } from './billing-detail/billing-detail.component';

const routes: Routes = [
  {
    path: '',
    component: BillingListComponent,
  },
  {
    path: ':id',
    component: BillingDetailComponent,
  },
  {
    path: '**',
    redirectTo: '',
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class BillingRoutingModule { }
